package jnpf.app;

import jnpf.app.fallback.AppApiFallback;
import jnpf.entity.AppDataEntity;
import jnpf.utils.FeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(name = FeignName.APP_SERVER_NAME, fallback = AppApiFallback.class, path = "/Data")
public interface AppApi {

    /**
     * 删除app常用数据
     *
     * @return
     */
    @GetMapping("/deleObject/{id}")
    void deleObject(@PathVariable("id") String id);

    /**
     * 获取常用菜单信息
     *
     * @return
     */
    @GetMapping("/getInfo")
    AppDataEntity getData(@RequestParam("id") String id);

    /**
     * 修改常用菜单
     *
     * @return
     */
    @PutMapping("/updateData")
    void updateData(@RequestBody AppDataEntity appDataEntity);

}
